package onjava.advance.ch01.sec04;

enum Search {HITHER, YON}

/**
 * @author yangdc
 * @date 9/20/25 00:07
 */
public class UpcastEnum {
    public static void main(String[] args) {
        Search[] vals = Search.values();
        Enum e = Search.HITHER;
        for (Enum en : e.getClass().getEnumConstants()) {
            System.out.println(en);
        }
    }
}
